home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Varsity Update 1998 August
/
SGI Varsity Update 1998 August.iso
/
dist
/
dist6.5
/
il_dev.idb
/
usr
/
include
/
il2.5
/
ilRoiImg.h.z
/
ilRoiImg.h
Wrap
C/C++ Source or Header
|
1998-07-29
|
3KB
|
77 lines
#if 0
Copyright (c) 1991 SGI All Rights Reserved
THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF SGI
The copyright notice above does not evidence any
actual or intended publication of such source code,
and is an unpublished work by Silicon Graphics, Inc.
This material contains CONFIDENTIAL INFORMATION that
is the property of Silicon Graphics, Inc. Any use,
duplication or disclosure not specifically authorized
by Silicon Graphics is strictly prohibited.
RESTRICTED RIGHTS LEGEND:
Use, duplication or disclosure by the Government is
subject to restrictions as set forth in subdivision
(c)(1)(ii) of the Rights in Technical Data and Computer
Software clause at DFARS 52.227-7013, and/or in similar
or successor clauses in the FAR, DOD or NASA FAR
Supplement. Unpublished- rights reserved under the
Copyright Laws of the United States. Contractor is
SILICON GRAPHICS, INC., 2011 N. Shoreline Blvd.,
Mountain View, CA 94039-7311
#endif
/*
ilRoiImg is derived from the base ilImage class. This class is used
to associate an ilRoi class with an ilImage class.
*/
#ifndef _ilRoiImg_h_
#define _ilRoiImg_h_
#include <il2.5/ilImage.h>
#include <il2.5/ilRoi.h>
class ilRoiImg : public ilImage {
public:
ilDeclareDerivedClass
~ilRoiImg();
// external api: begin
ilRoiImg(ilImage *Img, ilRoi *Roi, ilPixel &bkgd, int xoffset = 0, int yoffset = 0);
ilRoi* getRoi() { return roi; }
void getBkgd(ilPixel &bkg) { bkg = bval; }
void setRoi(ilRoi *Roi, int xoffset = 0, int yoffset = 0);
void setBkgd(ilPixel &bkgd) { bval = bkgd; setAltered(); }
// external api: end
ilStatus getSubTile3D(int x, int y, int z, int nx, int ny, int nz,
void *data, int dx, int dy, int dz,
int dnx, int dny, int dnz,
const ilConfig* config=NULL);
ilStatus setSubTile3D(int x, int y, int z, int nx, int ny, int nz,
void *data, int dx, int dy, int dz,
int dnx, int dny, int dnz,
const ilConfig* config=NULL);
protected:
void reset();
private:
ilRoi* roi; // XXX: IL2.3 binary compatibility
int roiXoffset, roiYoffset;
ilTile roiBox;
ilPixel bval;
void init(ilImage *src, ilRoi *Roi, ilPixel &bkgd, int xoffset, int yoffset);
void setStride(ilOrder o, int nx, int ny, int nz, int nc, int &xs, int &ys, int &zs, int &cs);
};
#endif